package Box2D.Dynamics
{
	import Box2D.Common.b2Settings;
	import Box2D.Common.b2Wrapper;
	
	public class b2ContactImpulse extends b2Wrapper
	{
		private var _normalImpulses:Vector.<Number>;
		private var _tangentImpulses:Vector.<Number>;
		public function b2ContactImpulse(wrapper:Object)
		{
			super(wrapper);
			_normalImpulses = new Vector.<Number>;
			for(var i:int=0;i<b2Settings.b2_maxManifoldPoints;i++){
				_normalImpulses.push(getNumber(i*4));
			}
			var s:int = 4*b2Settings.b2_maxManifoldPoints;
			_tangentImpulses = new Vector.<Number>;
			for(i=0;i<b2Settings.b2_maxManifoldPoints;i++){
				_normalImpulses.push(getNumber(s+i*4));
			}
		}
		public function get normalImpulses():Vector.<Number>{return _normalImpulses}
		public function get tangentImpulses():Vector.<Number>{return _tangentImpulses}
	}
}